package Day05;

import java.util.Random;

public class PlusHomeWork {
    public static void main(String[] args) {
        Random $1= new Random();
  /*      int a=0;
        for(int i=0;i<=100;i+=2){
            a=i+a;
        }
        System.out.println("0-100之间的所有偶数和等于"+a);
        int b=1;
        for (int i=1;i<=8;i++) {
            b=b*i;
        }*/
/*        System.out.println("8的阶乘为"+b);

 */
        for (int c=1;c<=6;c++){
            for (int d=1;d<=c*2-1;d++){
                System.out.print("*");
            }
            System.out.println();
        }
/*        int[] _1=new int[10];
        int max=0,min=100;

        for (int i=0;i<=_1.length-1;i++){
            _1[i]= $1.nextInt(100+1);
            if (_1[i]>max){
                max=_1[i];
            }
            if (_1[i]<min){
                min=_1[i];
            }
        }
        System.out.println("数组最大值为"+max+","+"最小值为"+min);

 */
    }
}
